<?php
/**
 * Created by PhpStorm.
 * @author 清凉Tea <973110519@qq.com>
 * Date: 2018/1/9
 * Time: 17:29
 */

namespace app\common\library;


class AuthUtil
{
    /**
     * 获取密码加密方式
     * @param string $password
     * @param string $salt
     * @return string
     */
    public static function encryptPassword($password, $salt = '')
    {
        return md5(md5($password) . $salt);
    }
}